import request from '../utils/request';
// 新增简历
export const newInfo = query => {
    return request.post('/zsrencai/api/person/resume/save', query)
}

// 获取信息
export const getDetail = query => {
    return request.get(`/zsrencai/api/person/resume/info/step/${query}`, query)
}

// 保存个人信息
export const savePerson = query => {
    return request.post('/zsrencai/api/person/resume/person/info', query)
}

// 保存教育经历
export const saveEdu = query => {
    return request.post('/zsrencai/api/person/resume/education', query)
}
// 保存工作经验
export const saveWork = query => {
    return request.post('/zsrencai/api/person/resume/work', query)
}

// 获取学位下拉
export const getDegree = () => {
    return request.get('/zsrencai/api/sys/admin/dict/get/education')
}

// 获取工作经验select下拉
export const getSelect = () => {
    return request.get('/zsrencai/api/sys/admin/dict/get/current_status,area')
}

// 获取行业级联
export const getIndustry = () => {
    return request.get('/zsrencai/api/sys/admin/tc/find/tree')
}

// 获取职业级联
export const getJobType = () => {
    return request.get('/zsrencai/api/sys/admin/jc/find/tree')
}
// 获取简历基本信息
export const getInfo = query => {
    return request.get('/zsrencai/api/person/resume/select')
}

// 修改密码
export const updatePsd = query => {
    return request.post(`/zsrencai/api/person/user/insert-password`,query)
}
// 人员类别
export const getPersonType = () => {
    return request.get('/zsrencai/api/sys/admin/dict/get/people_type')
}